//
//  PlotSearchVC.m
//  智慧小区
//
//  Created by 高永杨 on 2017/3/18.
//  Copyright © 2017年 zhongchuang. All rights reserved.
//

#import "PlotSearchVC.h"
#import "PlotView.h"
@interface PlotSearchVC ()<UITextFieldDelegate,PlotViewDelegate>

@end

@implementation PlotSearchVC
-(void)viewWillAppear:(BOOL)animated
{
    self.navigationController.navigationBar.hidden = YES;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.tabBarController.tabBar.hidden = YES;
    UIView *view = [[UIView alloc]initWithFrame:CGRectMake(0, 0, GyyScreenW, 64)];
    PlotView *plotV = [[NSBundle mainBundle]loadNibNamed:NSStringFromClass([PlotView class]) owner:self options:nil].firstObject;
    plotV.frame = CGRectMake(0, 0, GyyScreenW, 64);
    plotV.delegate =self;
    plotV.textF.delegate = self;
    [view addSubview:plotV];
    [self.view addSubview:view];
    // Do any additional setup after loading the view from its nib.
}
-(BOOL)textFieldShouldReturn:(UITextField *)textField
{
    [textField resignFirstResponder];
    return YES;
}
-(void)goBackVC
{
    [self.navigationController popViewControllerAnimated:YES];
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
